class Person:
    name='yuhang'
    def __str__(self):
        return 'name:'+self.name

p=Person()
print(p) # name:yuhang